import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/Home'
import Paging from '@/pages/Paging.vue'
import Shopping from '@/pages/Shopping.vue'
import My from '@/pages/My.vue'
import New from '@/pages/New.vue'
import Genre from '@/pages/Genre.vue'
import Corridors from '@/pages/Corridors.vue'
import Account from '@/pages/Account.vue'
import Xiangqing from '@/pages/Xiangqing.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home
    },
    {
      path: '/paging',
      component: Paging
    },
    {
      path: '/shopping',
      component: Shopping
    },
    {
      path: '/my',
      component: My
    },
    {
      path: '/my/name',
      component: New
    },
    {
      path: '/genre/name',
      component: Genre
    },
    {
      path: '/corridors',
      component: Corridors
    },
    {
      path: '/account/name',
      component: Account
    },
    {
      path: '/genre/:id',
      component: Xiangqing
    },
    // {
    //   path: '/xiangqing/:id',
    //   component: Shopping
    // },
  ]
})
